projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1e9f4a
)
Removed needless initial size request of children
author
Tristan Van Berkom
<tristan.van.berkom@gmail.com>
Fri, 8 Oct 2010 13:26:01 +0000
(22:26 +0900)
committer
Tristan Van Berkom
<tristan.van.berkom@gmail.com>
Fri, 8 Oct 2010 13:33:21 +0000
(22:33 +0900)
Old code was probably doing size-request on all children initially,
and then calling get_child_requisition() in other passes, now these
are cached after the first request anyway.
gtk/gtktable.c
patch
|
blob
|
history
diff --git
a/gtk/gtktable.c
b/gtk/gtktable.c
index 5bdbcfabc9500f090e2f6fe3c19bd68ce130a4dd..c8fb4027ac8b915d7e1dd020f4cb59b6abbb0dba 100644
(file)
--- a/
gtk/gtktable.c
+++ b/
gtk/gtktable.c
@@
-1033,9
+1033,6
@@
gtk_table_size_request_init (GtkTable *table)
child = children->data;
children = children->next;
- if (gtk_widget_get_visible (child->widget))
- gtk_widget_get_preferred_size (child->widget, NULL, NULL);
-
if (child->left_attach == (child->right_attach - 1) && child->xexpand)
priv->cols[child->left_attach].expand = TRUE;